
#include "TCPSocket.h"
#include <WinSock2.h>
#include "SocketAddress.h"

namespace CustomSocket
{
	SOCKET* TCPSocket::staticSocket = nullptr;
	int TCPSocket::Bind(SocketAddress& socketAddressPrt, USHORT len)
	{
		auto addr_prt = socketAddressPrt.GetSockAddr();
		auto err = bind(this->mSocket, addr_prt, socketAddressPrt.GetSize());
		return err;
	}
}